﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
namespace MRSite.Entity
{
    /// <summary>
    /// 对碰记录表
    /// </summary>
    [Table(Name = "touchlog")]
    public class Touchlog
    {
        /// <summary>
        ///
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public int id { get; set; }

        /// <summary>
        ///层碰对象甲A
        /// </summary>
        [Column(Name = "user_id")]
        public int user_id { get; set; }

        /// <summary>
        ///类型0层碰，1量碰，2见点
        /// </summary>
        [Column(Name = "tp")]
        public int tp { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "addtime",IsDbGenerated=true)]
        public DateTime addtime { get; set; }

        /// <summary>
        ///产生金额
        /// </summary>
        [Column(Name = "val")]
        public Decimal val { get; set; }

        /// <summary>
        ///甲乙基于碰撞的对象
        /// </summary>
        [Column(Name = "zhuang")]
        public int zhuang { get; set; }

        /// <summary>
        ///量碰剩余金额
        /// </summary>
        [Column(Name = "shengyu")]
        public Decimal shengyu { get; set; }

        /// <summary>
        ///层级dbno
        /// </summary>
        [Column(Name = "lev")]
        public int lev { get; set; }

        /// <summary>
        ///对碰号
        /// </summary>
        [Column(Name = "dbno")]
        public string dbno { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        [Column(Name = "levels")]
        public int levels { get; set; }
        

    }
}
